package com.dpad.telematicsclientapp.adapter

import android.annotation.SuppressLint
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder

import com.dpad.telematicsclientapp.android.R
import com.dpad.telematicsclientapp.netlibrary.newapp.entity.UserCenterMoudle

/**
 * ================================================
 * 作    者：wenbody
 * 版    本：1.0
 * 创建日期：2019/12/20 15:40
 * 描    述：
 * 修订历史：
 * ================================================
 */
class UserCenterDetailAdapter(data: MutableList<UserCenterMoudle>)
    : BaseQuickAdapter<UserCenterMoudle, BaseViewHolder>(R.layout.item_ucenter_detail, data) {

    @SuppressLint("ClickableViewAccessibility")
    override fun convert(helper: BaseViewHolder, item: UserCenterMoudle) {
        helper.setImageResource(R.id.ucenterDetailIm, item.imageId)
        helper.setText(R.id.ucenterDetailTv, item.title)
    }
}